package com.zerui.manager.accessrecord.domainservice;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zerui.manager.accessrecord.AccessRecord;
import com.zerui.manager.accessrecord.gateway.AccessRecordGateWay;
import com.zerui.manager.web.cmd.AccessRecordQryCmd;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
/**
 * @Author wh
 * @create_time 2023-08-23 11:07
 */
@Component
public class AccessRecordRepository {

	@Resource
	private AccessRecordGateWay accessRecordGateWay;

    public  Page<AccessRecord> getPageList(AccessRecordQryCmd accessRecordQryCmd) {
        return accessRecordGateWay.getPageList(accessRecordQryCmd);
    }

    public void getAccessRecordListExport(AccessRecordQryCmd accessRecordQryCmd, HttpServletResponse response) {
        accessRecordGateWay.getAccessRecordListExport(accessRecordQryCmd,response);
    }
}
